package org.jeecg.modules.chg.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.chg.entity.ChgSubArrear;

import java.util.List;

/**
 * @Description: 欠费明细
 * @Author: jeecg-boot
 * @Date:   2022-02-13
 * @Version: V1.0
 */
public interface ChgSubArrearMapper extends BaseMapper<ChgSubArrear> {

	//删除水费
	public boolean deleteByMainId(@Param("mainId") String mainId);

	//删除杂项欠费明细
	public void deleteAlienByMainId(@Param("mainId") String mainId);

	public List<ChgSubArrear> selectByMainId(@Param("mainId") String mainId);

	//根据缴费账号查询欠费明细记录
	public List<ChgSubArrear> selectByAccCode(@Param("accCode") String accCode);

}
